package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 rgbl
 * 
 * @author ruoyi
 * @date 2025-02-13
 */
@Data
@ApiModel(value = "备料对象", description = "备料对象")
public class Rgbl
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    /** 单号 */
    @Excel(name = "单号")
    @ApiModelProperty(value = "单号")
    private String orderNo;

    /** 物料编号 */
    @Excel(name = "物料编号")
    @ApiModelProperty(value = "物料编号")
    private String ingreNo;

    /** 物料名称 */
    @Excel(name = "物料名称")
    @ApiModelProperty(value = "物料名称")
    private String ingreName;

    /** 工步 */
    @Excel(name = "工步")
    @ApiModelProperty(value = "工步")
    private String seq;

    /** 设定重量 */
    @Excel(name = "设定重量")
    @ApiModelProperty(value = "设定重量")
    private BigDecimal setWght;

    /** 备料地点 */
    @Excel(name = "备料地点")
    @ApiModelProperty(value = "备料地点")
    private Integer positionIndex;

    /** 包装重量 */
    @Excel(name = "包装重量")
    @ApiModelProperty(value = "包装重量")
    private BigDecimal bzWght;

    /** 零头 */
    @Excel(name = "零头")
    @ApiModelProperty(value = "零头")
    private BigDecimal remnant;

    /** 实际重量 */
    @Excel(name = "实际重量")
    @ApiModelProperty(value = "实际重量")
    private BigDecimal actWght;

    /** 批次 */
    @Excel(name = "批次")
    @ApiModelProperty(value = "批次")
    private String batchNo;

    /** 备料确认/领料确认 */
    @Excel(name = "备料确认/领料确认")
    @ApiModelProperty(value = "备料确认/领料确认")
    private Integer check1;

    /** 投料确认 */
    @Excel(name = "投料确认")
    @ApiModelProperty(value = "投料确认")
    private Integer check2;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @ApiModelProperty(value = "备料确认/领料确认")
    private Integer mksure;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @ApiModelProperty(value = "投料确认")
    private Date time;

    /** 允许误差范围 */
    @Excel(name = "允许误差范围")
    @ApiModelProperty(value = "允许误差范围")
    private Long accuracy;

    /** 订单日期 */
    @Excel(name = "订单日期")
    @ApiModelProperty(value = "订单日期")
    private String date;

    /** 备料时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "备料时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "备料时间")
    private LocalDateTime beiliaoTime;

    /** 投料时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "投料时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "投料时间")
    private LocalDateTime touliaoTime;

    /** 是否删除 */
    @Excel(name = "是否删除")
    @ApiModelProperty(value = "是否删除")
    private Integer isDel;
    /*@ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;*/
    @Excel(name = "工序")
    @ApiModelProperty(value = "工序")
    private String operation;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setIngreNo(String ingreNo) 
    {
        this.ingreNo = ingreNo;
    }

    public String getIngreNo() 
    {
        return ingreNo;
    }
    public void setIngreName(String ingreName) 
    {
        this.ingreName = ingreName;
    }

    public String getIngreName() 
    {
        return ingreName;
    }
    public void setSeq(String seq) 
    {
        this.seq = seq;
    }

    public String getSeq() 
    {
        return seq;
    }
    public void setSetWght(BigDecimal setWght)
    {
        this.setWght = setWght;
    }

    public BigDecimal getSetWght()
    {
        return setWght;
    }
    public void setPositionIndex(Integer positionIndex) 
    {
        this.positionIndex = positionIndex;
    }

    public Integer getPositionIndex() 
    {
        return positionIndex;
    }
    public void setBzWght(BigDecimal bzWght)
    {
        this.bzWght = bzWght;
    }

    public BigDecimal getBzWght()
    {
        return bzWght;
    }
    public void setRemnant(BigDecimal remnant)
    {
        this.remnant = remnant;
    }

    public BigDecimal getRemnant()
    {
        return remnant;
    }
    public void setActWght(BigDecimal actWght)
    {
        this.actWght = actWght;
    }

    public BigDecimal getActWght()
    {
        return actWght;
    }
    public void setBatchNo(String batchNo) 
    {
        this.batchNo = batchNo;
    }

    public String getBatchNo() 
    {
        return batchNo;
    }
    public void setCheck1(Integer check1) 
    {
        this.check1 = check1;
    }

    public Integer getCheck1() 
    {
        return check1;
    }
    public void setCheck2(Integer check2) 
    {
        this.check2 = check2;
    }

    public Integer getCheck2() 
    {
        return check2;
    }
    public void setMksure(Integer mksure) 
    {
        this.mksure = mksure;
    }

    public Integer getMksure() 
    {
        return mksure;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setAccuracy(Long accuracy) 
    {
        this.accuracy = accuracy;
    }

    public Long getAccuracy() 
    {
        return accuracy;
    }
    public void setDate(String date) 
    {
        this.date = date;
    }

    public String getDate() 
    {
        return date;
    }
    public void setBeiliaoTime(LocalDateTime beiliaoTime)
    {
        this.beiliaoTime = beiliaoTime;
    }

    public LocalDateTime getBeiliaoTime()
    {
        return beiliaoTime;
    }
    public void setTouliaoTime(LocalDateTime touliaoTime)
    {
        this.touliaoTime = touliaoTime;
    }

    public LocalDateTime getTouliaoTime()
    {
        return touliaoTime;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNo", getOrderNo())
            .append("ingreNo", getIngreNo())
            .append("ingreName", getIngreName())
            .append("seq", getSeq())
            .append("setWght", getSetWght())
            .append("positionIndex", getPositionIndex())
            .append("bzWght", getBzWght())
            .append("remnant", getRemnant())
            .append("actWght", getActWght())
            .append("batchNo", getBatchNo())
            .append("check1", getCheck1())
            .append("check2", getCheck2())
            .append("mksure", getMksure())
            .append("time", getTime())
            .append("accuracy", getAccuracy())
            .append("date", getDate())
            .append("beiliaoTime", getBeiliaoTime())
            .append("touliaoTime", getTouliaoTime())
            .append("isDel", getIsDel())
            .toString();
    }
}
